import request from '@/utils/system/request'

// 获取数据api
export function api_get_goods(data: object) {
  return request({
    url: '/get_goods',
    method: 'post',
    data
  })
}

// 删除
export function delete_goodsById(data: object) {
  return request({
    url: '/delete_goods_by_id',
    method: 'post',
    data
  })
}

// 新增
export function add(data: object) {
  return request({
    url: '/card/add',
    method: 'post',
    baseURL: '/mock',
    data
  })
}

// 编辑
export function update(data: object) {
  return request({
    url: '/card/update',
    method: 'post',
    baseURL: '/mock',
    data
  })
}

